import java.util.Vector;


public class StevesStringDivider 
{
	char divider;
	public StevesStringDivider(char divide)
	{
		divider = divide;
	}
	
	public String[] divide(String input)
	{
		int start = 0;
		Vector v = new Vector();
		for(int a = 0; a < input.length(); a++)
		{
			if(input.charAt(a) == divider)
			{
				String temp = input.substring(start, a);
				v.add(temp);
				start = a+1;
			}
		}
		String temp = input.substring(start,input.length());
		v.add(temp);
		
		String[] result = new String[v.size()];
		for(int a = 0; a < result.length; a++)
		{
			result[a] = (String) v.get(a);
		}
		return result;
	}
	
}
